package com.lqg.bookLibrary.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author prodigal_lqg
 * @since 2023-04-09 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("type")
public class Type implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 图书分类id
     */
    @TableId(value = "type_id", type = IdType.AUTO)
    private Integer typeId;

    /**
     * 图书类型名称
     */
    @TableField("type_name")
    private String typeName;

    /**
     * 图书分类父亲id
     */
    @TableField("father_id")
    private Integer fatherId;


}
